import Http from "../http";

export async function combinationBackTestPageApi(params:any) {
    const { data } = await Http.get('strategy/batchtest/list', params)
    return data
}

export async function combinationBackTestTaskDetailApi(params:any) {
    const { data } = await Http.get('strategy/batchtest/taskdetail', params)
    return data
}

export async function combinationBackTestTaskProgressApi(params:any) { //任务进度
    const { data } = await Http.get('strategy/batchtest/process', params)
    return data
}


export function profitSummaryApi(params:any) {
    return Http.get('strategy/batchtest/result', params)
}

export function transactionDetailApi(params:any) {
    return Http.get('strategy/batchtest/transactions', params)
}

export function positionApi(params:any) {
    return Http.get('strategy/batchtest/position', params)
}

export function strategyProfitApi(params:any) {
    return Http.get('strategy/batchtest/strategy_returns', params)
}

export function benchmarkProfitApi(params:any) {
    return Http.get('strategy/batchtest/benchmark_returns', params)
}

export function batchTestRunApi(params:any) {
    return Http.post('strategy/batchtest/run', params)
}
